package org.spboot.jms.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * 处理消息
 * 
 * @author Administrator
 *
 */
@Service
public class JmsService {

	@JmsListener(destination = "user_reg")
	public void reg(String jsonStr) {
		System.out.println("接收到消息:"+jsonStr);
		//发个邮件
		
	}
	
	@JmsListener(destination = "user_sms")
	public void sms(String jsonStr) {
		System.out.println("接收到消息:"+jsonStr);
		//短信
	}
}
